package com.bobo.eurekaprovider;

import com.bobo.eurekafeignapi.HelloInterface;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bobo
 * @date 2020-12-08
 */
@RestController
public class FeignCommonProviderController implements HelloInterface {

    @Value("${server.port}")
    private int port;

    @Override
    public String hello() {
        return "服务提供者,我的端口为：" + port;
    }
}
